1 using System.Collections;
2 using
System.Collections.Generic;
3 using
UnityEngine;
4
5 public
class DestroyByBoundary : MonoBehaviour {
6
7     
void OnTriggerExit2D(Collider2D collider) {
8         collider.gameObject.SetActive(
false);
9     }
10 }


Gõ tìm kiếm nhanh...